<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
// 前台首页
Route::any('home', 'index/index/index');

// 前台商城
Route::any('shop', 'index/shop/shopindex');


// 后台首页
Route::any('syadmin', 'admin/index/index');
// 后台商品管理
Route::any('goods', 'admin/goods/index');
// 后台商品添加页面
Route::any('goods_create', 'admin/goods/create');

Route::resource('goods_insert', 'admin/goods');

// 后台分类管理
Route::any('goodscate', 'admin/goodscate/index');
// 后台分类添加页面
Route::any('g_cate_create', 'admin/goodscate/create');
// 后台分类编辑
Route::any('g_cate_edit', 'admin/goodscate/edit');
// 分类添加操作
Route::any('g_cate_insert', 'admin/goodscate/insert');
Route::any('g_cate_update','admin/goodscate/update');
// 分类删除操作
Route::resource('g_cate_delete','admin/goodscate');



// lyp-------------------------------------------
// 后台登录
// Route::any('alogin', 'admin/login/login');
// Route::any('adeng', 'admin/login/deng');


// 生成资源控制器路由 会员管理
Route::resource('vipuser','admin/Vipuser');
Route::post('vipuser','admin/Vipuser/update');

// 生成资源控制器路由 后台管理员管理
Route::get('syauser','admin/Syauser/index');
Route::resource('syauser','admin/Syauser');
Route::post('syauser','admin/Syauser/update');


// wx---------------------------------------------
//前台关于
Route::any('about', 'index/index/about');
//前台登录
Route::any('login', 'index/login/login');
Route::any('deng', 'index/login/deng');
//前台注册
Route::any('register', 'index/register/register');
Route::any('zhuce', 'index/register/zhuce');
//前台教师
Route::any('iteacher','index/teacher/teacher');

Route::get('jump', 'index/index/jump');

//后台登录注册
Route::any('alogin', 'admin/login/login');
Route::any('adeng', 'admin/login/deng');

Route::any('aregister', 'admin/register/register');
Route::any('azhuce', 'admin/register/zhuce');

// 后台教师管理
Route::resource('teachers', 'admin/teacher');
Route::any('teacher', 'admin/teacher/index');
Route::any('edit', 'admin/teacher/edit');




































































return [
    // '__pattern__' => [
    //     'name' => '\w+',
    // ],
    // '[hello]'     => [
    //     ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
    //     ':name' => ['index/hello', ['method' => 'post']],
    // ],

];
